if [[ ! -z $1 ]] && [[ -d $1 ]] && [[ -z ${unline_path} ]]
then
PREHOME=$1
elif [[ ! -z ${unline_path} ]]
then
PREHOME=${unline_path}
else
PREHOME=${HOME}"/unline"
fi
if [[ ! -d ${PREHOME}/peanut ]]
then
  mkdir -p ${PREHOME}/peanut
fi
file_name=`ls -lt ${PREHOME}/peanut | grep "^-" | awk -F '[ ]+' '{print $NF}'| head -n 1`
echo ${file_name}
if [[ -z ${file_name} ]]
then
   wget -P ${PREHOME}/peanut "https://dl.oray.com/hsk/linux/phddns_5.3.0_amd64.deb"
fi
install_result=`sudo dpkg -i ${PREHOME}/peanut/${file_name}`
echo "$install_result"
SN=` echo "${install_result}" | grep SN | awk -F '[: ]+' '{print $4}'`
echo $SN
